package com.afkx.oop.demo8;

/**
 * @ClassName 铁玉门
 * @Description TODO
 * @Author Kx
 * @Date 2025/3/4 19:11
 * @Version 1.0
 */
public class IronJadeDoor extends Door implements Exorcise,Bell{
    public IronJadeDoor(String name) {
        super(name);
    }


    @Override
    public void open() {
        System.out.println("铁玉门可以开门");
    }

    @Override
    public void close() {
        System.out.println("铁玉门可以关门");
    }

    @Override
    public void exorcise() {
        System.out.println("铁玉门可以辟邪");
    }

    @Override
    public void ring() {
        System.out.println("铁玉门可以防盗");
    }
}
